using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpcuaClient.Model
{
    /// <summary>
    /// Opc服务器
    /// </summary>
    public class CollectServer
    {
        /// <summary>
        /// 服务编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 服务器名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 服务器地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 消息体类型（KAFKA/MQTT）
        /// </summary>
        public string MessageType { get; set; }
        /// <summary>
        /// 消息中间件地址
        /// </summary>
        public string MessageUrl { get; set; }
        /// <summary>
        /// 消息中间件用户名
        /// </summary>
        public string MessageUser { get; set; }
        /// <summary>
        /// 消息蹭件密码
        /// </summary>
        public string MessagePwd { get; set; }
        /// <summary>
        /// 刷新频次
        /// </summary>
        public int Frequency { get; set; }
        /// <summary>
        /// 服务器连接状态
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 采集时间
        /// </summary>
        public DateTime CollectTime { get; set; }
        /// <summary>
        /// 结构体
        /// </summary>
        public List<Construction> Constructions { get; set; } = new List<Construction>();
        /// <summary>
        /// 采集点位清单
        /// </summary>
        public List<Collection> Collections { get; set; } = new List<Collection>();
    }
}
